package com.zzyl.service;

import com.zzyl.base.PageResponse;
import com.zzyl.dto.DeviceDataPageReqDto;
import com.zzyl.vo.DeviceDataGraphVo;
import com.zzyl.vo.DeviceDataVo;

import java.util.List;

/**
 * @Description DeviceDataService
 * @Author loe
 * @Date 2024-07-24
 */
public interface DeviceDataService {

    /**
     * 获取物模型数据分页结果
     * @param deviceDataPageReqDto
     * @return
     */
    PageResponse<DeviceDataVo> getPage(DeviceDataPageReqDto deviceDataPageReqDto);

    /**
     *按天统计查询指标数据
     * @param deviceDataPageReqDto
     * @return
     */
    List<DeviceDataGraphVo> queryDeviceDataListByDay(String iotId, Long endTime, String functionId, Long startTime);

    /**
     * 按周统计查询指标数据
     * @param iotId
     * @param endTime
     * @param functionId
     * @param startTime
     * @return
     */
    List<DeviceDataGraphVo> queryDeviceDataListByWeek(String iotId, Long endTime, String functionId, Long startTime);
}
